<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>Hiring-求职者登录</title>
		<link rel="stylesheet" href="<%=request.getContextPath() %>/vendor/bootstrap-3.3.7-dist/css/bootstrap.min.css"/>
	</head>
	<body>
	   <h2 class="text-center">求职者登录</h2>
	   <hr>
		
	   <div class="container">
			<form class="form-horizontal" action="<%=request.getContextPath() %>/talent_talentLogin.action" method="post">
			  <div class="form-group">
			    <label for="code" class="col-sm-2 control-label">账号：</label>
			    <div class="col-sm-10">
			      <input type="text" class="form-control" name="talent.code" placeholder="请输入用户账号" value="zs">
			    </div>
			  </div>
			  <div class="form-group">
			    <label for="password" class="col-sm-2 control-label">密码：</label>
			    <div class="col-sm-10">
			      <input type="password" class="form-control" name="talent.password" placeholder="请输入用户密码" value="123456">
			    </div>
			  </div>
			  <div class="form-group">
			    <label for="validateCode" class="col-sm-2 control-label">验证码：</label>
			    <div class="col-sm-10">
			      <input type="text" class="form-validate" name="validateCode" id="validateCode" placeholder="请输入验证码">
			      <img alt="" src="<%=request.getContextPath() %>/validate-code.jsp" width="90" height="30" title="看不清，点击换一张" onclick="changeValidateCode(this)">
			    </div>
			  </div>
			  <div class="form-group">
			    <div class="col-sm-offset-2 col-sm-10">
			      <div class="checkbox">
			        <label>
			          <input type="checkbox"> 自动登录
			        </label>
			      </div>
			    </div>
			  </div>
			  <div class="form-group">
			    <div class="col-sm-offset-2 col-sm-10">
			      <button type="submit" class="btn btn-primary btn-block">登录</button>
			    </div>
			  </div>
			</form>
	   </div>
	   <script src="<%=request.getContextPath()%>/vendor/jquery.min.js"></script>
	   <script src="<%=request.getContextPath()%>/vendor/layer/layer.js"></script>
	   <script>
	   	  var msg = '${msg}';
	   	  if (msg) {
	   		  layer.msg(msg, {icon: 2})
	   	  }
	  	function changeValidateCode(img) {
	   		  img.src = '<%=request.getContextPath() %>/validate-code.jsp?time=' + new Date().getTime();
	   	  }
	   </script>
	</body>
</html>